/*******************************************************************************
 *
 * Copyright (c) 2008-2011 ayound@gmail.com, guwei8576431@gmail.com
 * This program and the accompanying materials
 * are made available under the terms of the GNU GENERAL PUBLIC LICENSE 
 * which accompanies this distribution, and is available at
 * http://dev.perl.org/licenses/gpl1.html
 * All rights reserved.
 * 
 * Created on 2009-10-20
 *******************************************************************************/

package org.cgtw.scriptprofile.engine.manager;

import org.cgtw.scriptprofile.engine.compile.IScriptCompileEngine;
import org.cgtw.scriptprofile.engine.compile.impl.ScriptCompileEngine;

public class ScriptCompileManager {
	private static ScriptCompileManager manager = null;
	
	private IScriptCompileEngine engine = null;
	
	private ScriptCompileManager(){}
	
	public static ScriptCompileManager getInstance(){
		if(manager == null){
			manager = new ScriptCompileManager();
		}
		return manager;
	}
	
	public IScriptCompileEngine getScriptCompileEngine(){
		if(engine == null){
			engine = new ScriptCompileEngine();
		}
		return engine;
	}

}
